﻿<%@ Control language="C#" Inherits="Authentication.Registration.ViewRegistration" CodeFile="ViewNewsHome.ascx.cs" AutoEventWireup="true"%>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
    <tr>
        <td align="left" valign="top">
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BorderColor="White"
                CaptionAlign="Right" DataSourceID="DSNewsHome" ShowHeader="False" Width="100%" BorderStyle="None" BorderWidth="0px">
                <Columns>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td align="left" valign="top">
                                        <b><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# getURL(DataBinder.Eval(Container, "DataItem.newsId").ToString()) %>'><%# DataBinder.Eval(Container, "DataItem.subject") %></asp:HyperLink></b></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                     <i>(<asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("createDate","{0:d}") %>'></asp:Label>)</i></td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="2" valign="top">
                                    <br />
                                        <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.summary") %>'></asp:Label></td>
                                </tr>
                            </table>
                            <hr class="table"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <asp:LinkButton ID="btnXemtiep" runat="server" OnClick="btnXemtiep_Click">Xem tiếp</asp:LinkButton></td>
    </tr>
</table>
<asp:SqlDataSource ID="DSNewsHome" runat="server"></asp:SqlDataSource>

